
 <!DOCTYPE HTML>
<html >
<head>
  <meta charset="UTF-8">
  
    <title>simle</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    
    <meta name="author" content="yk">
    

    
    <meta property="og:type" content="website">
<meta property="og:title" content="simle">
<meta property="og:url" content="https://jimago.gitee.io/blog/index.html">
<meta property="og:site_name" content="simle">
<meta property="og:locale" content="default">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="simle">

    
    <link rel="alternative" href="/atom.xml" title="simle" type="application/atom+xml">
    
    
    <link rel="icon" href="/blog/img/favicon.ico">
    
    
    <link rel="apple-touch-icon" href="/blog/img/jacman.jpg">
    <link rel="apple-touch-icon-precomposed" href="/blog/img/jacman.jpg">
    
    <link rel="stylesheet" href="/blog/css/style.css">
</head>

  <body>
    <header>
      
<div>
		
			<div id="imglogo">
				<a href="/blog/"><img src="/blog/img/logo.png" alt="simle" title="simle"/></a>
			</div>
			
			<div id="textlogo">
				<h1 class="site-name"><a href="/blog/" title="simle">simle</a></h1>
				<h2 class="blog-motto"></h2>
			</div>
			<div class="navbar"><a class="navbutton navmobile" href="#" title="Menu">
			</a></div>
			<nav class="animated">
				<ul>
					<ul>
					 
						<li><a href="/blog/">首页</a></li>
					
						<li><a href="/blog/archives">归档</a></li>
					
						<li><a href="/blog/about">简介</a></li>
					
					<li>
 					
					<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
						<label>Search</label>
						<input type="search" id="search" name="q" autocomplete="off" maxlength="20" placeholder="Search" />
						<input type="hidden" name="q" value="site:jimago.gitee.io/blog">
					</form>
					
					</li>
				</ul>
			</nav>			
</div>
    </header>
    <div id="container">
      <div id="main">

   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2018/09/20/aar库常见问题/" title="aar库常见问题" itemprop="url">aar库常见问题</a>
  </h1>
  <p class="article-author">By
       
		<a href="/blog/about" title="yk" target="_blank" itemprop="author">yk</a>
		
  <p class="article-time">
    <time datetime="2018-09-19T16:00:00.000Z" itemprop="datePublished"> Published 2018-09-20</time>
    
  </p>
</header>
    <div class="article-content">
        
        <ol>
<li><p><strong><em>aar生成和使用</em></strong>:<br> 1.1 创建aar库module：依次点击File–&gt;New–&gt;New Module，在弹出的选择module类型中选择“android library”，点击“next”输入module名称，点击finish创建一个aar库module；</p>
<p><img src="2018/09/20/aar库常见问题/aar生成步骤1.png" alt="aar生成步骤1"></p>
<p><img src="2018/09/20/aar库常见问题/aar生成步骤2.png" alt="aar生成步骤2"></p>
<p><img src="2018/09/20/aar库常见问题/aar生成步骤3.png" alt="aar生成步骤3"></p>
<p>1.2 点击android studio右侧的Gradle，然后选中库module的名称，依次选中task–&gt;build–&gt;assemble，这样就会在/build/output/aar目录下生成一个debug和一个release的两个aar库文件（如果只需要debug的库，则点击assembleDebug；如果只需要release库，则点击assembleRelease）；</p>
<p><img src="2018/09/20/aar库常见问题/aar生成步骤4.png" alt="aar生成步骤4"></p>
<p>1.3 将生产的aar库拷贝到需要引入的工程的libs目录下；</p>
<p>1.4 在build.gradle中的android中增加<br>​    repositories{<br>​        flatDir{<br>​            dirs ‘libs’<br>​        }<br>​    }<br>1.4 在build.gradle种的dependencies增加<br>​    api（name:”aar的名字”,ext:”aar”)<br>注意：如果build失败，可以使用File–&gt;invalidate caches/restart重启下ide即可</p>
</li>
</ol>

        
        
        <p class="article-more-link">
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">


</div>




<div class="comments-count">
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2018/09/13/springbootmaven问题/" title="springboot maven 问题" itemprop="url">springboot maven 问题</a>
  </h1>
  <p class="article-author">By
       
		<a href="/blog/about" title="yk" target="_blank" itemprop="author">yk</a>
		
  <p class="article-time">
    <time datetime="2018-09-13T08:14:29.439Z" itemprop="datePublished"> Published 2018-09-13</time>
    
  </p>
</header>
    <div class="article-content">
        
        <ol>
<li>Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project bbk: There are test failures.<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">解决方法：&lt;plugin&gt;</span><br><span class="line">		&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;</span><br><span class="line">		&lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;</span><br><span class="line">		&lt;version&gt;2.18.1&lt;/version&gt;</span><br><span class="line">		&lt;configuration&gt;</span><br><span class="line">			&lt;skipTests&gt;true&lt;/skipTests&gt;</span><br><span class="line">		&lt;/configuration&gt;</span><br><span class="line">	&lt;/plugin&gt;</span><br></pre></td></tr></table></figure></li>
</ol>

        
        
        <p class="article-more-link">
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">


</div>




<div class="comments-count">
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2018/09/07/Centos7安装jdktomcat以及配置/" title="Centos7" itemprop="url">Centos7</a>
  </h1>
  <p class="article-author">By
       
		<a href="/blog/about" title="yk" target="_blank" itemprop="author">yk</a>
		
  <p class="article-time">
    <time datetime="2018-09-07T05:43:05.055Z" itemprop="datePublished"> Published 2018-09-07</time>
    
  </p>
</header>
    <div class="article-content">
        
        <p>Centos7 常用命令</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">1.  ls -lht  带文件大小的ls</span><br></pre></td></tr></table></figure>
<ol>
<li><p>验证java版本<br><br>在命令行种输入<figure class="highlight java"><figcaption><span>-version ```</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="number">2</span>. 安装jdk和tomcat&lt;br&gt;</span><br><span class="line">    <span class="number">2.1</span> 下载、解压、安装jdk</span><br></pre></td></tr></table></figure></p>
<p> 1.下载：wget <a href="http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz" target="_blank" rel="noopener">http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz</a><br> （这里下载一直失败，所以采用的方式是在window下下载好，然后通过winscp复制到linux系统下）<br> 2.解压：tar -zxvf jdk-8u161-linux-x64.tar.gz<br> 3.安装jdk:jdk其实只需要配置好环境变量就可以了</p>
<pre><code>3.1 使用vi /etc/profile打开linux的环境变量文件，然后按shift+g跳转到文件末尾，再按‘i’进入编辑状态，
3.2 在文件末尾输入
    JAVA_HOME=/usr/src/jdk1.8.0_181(=号后面是你jdk解压后的路径)
    CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
    PATH=$JAVA_HOME/bin:$PATH
    export JAVA_HOME PATH CLASSPATH
3.3 按esc键切换到命令模式，然后输入:wq按回车保存文件并退出
3.4 输入命令 source /etc/profile 重新加载配置文件
</code></pre> <figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">2.2 下载、安装tomcat</span><br></pre></td></tr></table></figure>
<ol>
<li>下载 wget <a href="http://mirrors.hust.edu.cn/apache/tomcat/tomcat-9/v9.0.11/bin/apache-tomcat-9.0.11.tar.gz" target="_blank" rel="noopener">http://mirrors.hust.edu.cn/apache/tomcat/tomcat-9/v9.0.11/bin/apache-tomcat-9.0.11.tar.gz</a><br>（这里下载一直失败，所以采用的方式是在window下下载好，然后通过winscp复制到linux系统下）</li>
<li>解压：tar -zxvf apache-tomcat-9.0.15.tar.gz</li>
<li>启动tomcat： bin/startup.sh<br><code>`</code></li>
</ol>
</li>
</ol>

        
        
        <p class="article-more-link">
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">


</div>




<div class="comments-count">
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2018/09/05/android布局常见知识点/" title="android布局常见知识点" itemprop="url">android布局常见知识点</a>
  </h1>
  <p class="article-author">By
       
		<a href="/blog/about" title="yk" target="_blank" itemprop="author">yk</a>
		
  <p class="article-time">
    <time datetime="2018-09-05T06:13:54.364Z" itemprop="datePublished"> Published 2018-09-05</time>
    
  </p>
</header>
    <div class="article-content">
        
        <ol>
<li>gravity和layout_gravity的区别 <figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">gravity和layout_gravity都是设置控件的布局位置的，他们的参数和效果都是一样的，不同的是：&lt;br&gt;</span><br><span class="line">1.1 gravity是作用子控件的，一般用于layout布局：</span><br><span class="line">1.2 layout_gravity是作用当前控件的，一般用于控件中的内容：</span><br></pre></td></tr></table></figure></li>
</ol>

        
        
        <p class="article-more-link">
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">


</div>




<div class="comments-count">
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2018/09/04/android运行中问题及解决方法/" title="android运行中问题及解决方法" itemprop="url">android运行中问题及解决方法</a>
  </h1>
  <p class="article-author">By
       
		<a href="/blog/about" title="yk" target="_blank" itemprop="author">yk</a>
		
  <p class="article-time">
    <time datetime="2018-09-04T08:46:35.193Z" itemprop="datePublished"> Published 2018-09-04</time>
    
  </p>
</header>
    <div class="article-content">
        
        <ol>
<li><p><strong><em>问题</em></strong>： java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList couldn’t find xx so<br><br> 解决方法：so库不完全，需要补充64位so库<br> 或者在build.gradle中增加：</p>
 <figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"> ndk&#123;</span><br><span class="line">   abiFilters &quot;armeabi &quot;</span><br><span class="line"> </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p> 表明只从armeabi中寻找so库</p>
</li>
</ol>

        
        
        <p class="article-more-link">
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">


</div>




<div class="comments-count">
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2018/09/04/index/" title="测试" itemprop="url">测试</a>
  </h1>
  <p class="article-author">By
       
		<a href="/blog/about" title="yk" target="_blank" itemprop="author">yk</a>
		
  <p class="article-time">
    <time datetime="2018-09-04T03:06:18.413Z" itemprop="datePublished"> Published 2018-09-04</time>
    
  </p>
</header>
    <div class="article-content">
        
        <ol>
<li><a href="content/hello-world.md">helloword</a></li>
</ol>

        
        
        <p class="article-more-link">
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">


</div>




<div class="comments-count">
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2018/09/04/android build常见问题以及处理方法/" title="android studio build常见错误以及处理方法" itemprop="url">android studio build常见错误以及处理方法</a>
  </h1>
  <p class="article-author">By
       
		<a href="/blog/about" title="yk" target="_blank" itemprop="author">yk</a>
		
  <p class="article-time">
    <time datetime="2018-09-04T01:51:42.584Z" itemprop="datePublished"> Published 2018-09-04</time>
    
  </p>
</header>
    <div class="article-content">
        
        <ol>
<li><p><strong><em>问题描述</em></strong>：Manifest merger failed with multiple errors, see logs<br><br>处理方法：在cmd（terimal）中输入<code>gradlew processDebugManifest --stacktrace</code>查看更详细的错误日志</p>
</li>
<li><p><strong><em>问题描述</em></strong>：app:compileDebugJavaWithJavac<br><br>处理方法：在cmd（terimal）中输入<code>gradlew compileDebugSource --stacktrace -info</code>查看更详细的错误日志</p>
</li>
</ol>
<ol start="3">
<li><strong><em>问题描述</em></strong>：Cannot fit requested classes in a single dex file. Try supplying a main-dex list.<br><br> 处理方法：在app.gradle中的defaultConfig中添加multiDexEnabled true</li>
</ol>

        
        
        <p class="article-more-link">
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">


</div>




<div class="comments-count">
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2018/09/03/content/hello-world/" title="Hello World" itemprop="url">Hello World</a>
  </h1>
  <p class="article-author">By
       
		<a href="/blog/about" title="yk" target="_blank" itemprop="author">yk</a>
		
  <p class="article-time">
    <time datetime="2018-09-03T03:08:29.573Z" itemprop="datePublished"> Published 2018-09-03</time>
    
  </p>
</header>
    <div class="article-content">
        
        <p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="noopener">Deployment</a></p>

        
        
        <p class="article-more-link">
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">


</div>




<div class="comments-count">
	
</div>

</footer>


    </article>







</div>
      <div class="openaside"><a class="navbutton" href="#" title="Show Sidebar"></a></div>

<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="Hide Sidebar"></a></div>
<aside class="clearfix">

  


  

  

  <div class="linkslist">
  <p class="asidetitle">Links</p>
    <ul>
        
          <li>
            
            	<a href="https://coderq.com" target="_blank" title="一个面向程序员交流分享的新一代社区">码农圈</a>
            
          </li>
        
          <li>
            
            	<a href="http://wuchong.me" target="_blank" title="Jark&#39;s Blog">Jark&#39;s Blog</a>
            
          </li>
        
    </ul>
</div>

  


  <div class="rsspart">
	<a href="/atom.xml" target="_blank" title="rss">RSS</a>
</div>

  <div class="weiboshow">
  <p class="asidetitle">Weibo</p>
    <iframe width="100%" height="119" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=119&fansRow=2&ptype=1&speed=0&skin=9&isTitle=1&noborder=1&isWeibo=0&isFans=0&uid=&verifier=b3593ceb&dpc=1"></iframe>
</div>


</aside>
</div>
    </div>
    <footer><div id="footer" >
	
	<div class="line">
		<span></span>
		<div class="author"></div>
	</div>
	
	
	<section class="info">
		<p> Hello ,line1. <br/>
			</p>
	</section>
	 
	<div class="social-font" class="clearfix">
		
		<a href="http://weibo.com/2176287895" target="_blank" class="icon-weibo" title="微博"></a>
		
		
		
		
		
		
		
		
		
		
	</div>
			
		

		<p class="copyright">
		Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Jacman">Jacman</a> © 2018 
		
		<a href="/blog/about" target="_blank" title="yk">yk</a>
		
		
		</p>
</div>
</footer>
    <script src="/blog/js/jquery-2.0.3.min.js"></script>
<script src="/blog/js/jquery.imagesloaded.min.js"></script>
<script src="/blog/js/gallery.js"></script>
<script src="/blog/js/jquery.qrcode-0.12.0.min.js"></script>

<script type="text/javascript">
$(document).ready(function(){ 
  $('.navbar').click(function(){
    $('header nav').toggleClass('shownav');
  });
  var myWidth = 0;
  function getSize(){
    if( typeof( window.innerWidth ) == 'number' ) {
      myWidth = window.innerWidth;
    } else if( document.documentElement && document.documentElement.clientWidth) {
      myWidth = document.documentElement.clientWidth;
    };
  };
  var m = $('#main'),
      a = $('#asidepart'),
      c = $('.closeaside'),
      o = $('.openaside');
  c.click(function(){
    a.addClass('fadeOut').css('display', 'none');
    o.css('display', 'block').addClass('fadeIn');
    m.addClass('moveMain');
  });
  o.click(function(){
    o.css('display', 'none').removeClass('beforeFadeIn');
    a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');      
    m.removeClass('moveMain');
  });
  $(window).scroll(function(){
    o.css("top",Math.max(80,260-$(this).scrollTop()));
  });
  
  $(window).resize(function(){
    getSize(); 
    if (myWidth >= 1024) {
      $('header nav').removeClass('shownav');
    }else{
      m.removeClass('moveMain');
      a.css('display', 'block').removeClass('fadeOut');
      o.css('display', 'none');
        
    }
  });
});
</script>












<link rel="stylesheet" href="/blog/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/blog/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){ 
  $('.article-content').each(function(i){
    $(this).find('img').each(function(){
      if ($(this).parent().hasClass('fancybox')) return;
      var alt = this.alt;
      if (alt) $(this).after('<span class="caption">' + alt + '</span>');
      $(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>');
    });
    $(this).find('.fancybox').each(function(){
      $(this).attr('rel', 'article' + i);
    });
  });
  if($.fancybox){
    $('.fancybox').fancybox();
  }
}); 
</script>



<!-- Analytics Begin -->



<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?e6d1f421bbc9962127a50488f9ed37d1";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>



<!-- Analytics End -->

<!-- Totop Begin -->

	<div id="totop">
	<a title="Back to Top"><img src="/blog/img/scrollup.png"/></a>
	</div>
	<script src="/blog/js/totop.js"></script>

<!-- Totop End -->

<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->


<!-- MathJax End -->

<!-- Tiny_search Begin -->

<!-- Tiny_search End -->

  </body>
 </html>
